package edu.kjxy.day03.synchronizedBlockLockAll.test3;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 19:40
 */
public class MyObject {
    public void speedPrintString() {
        synchronized (this) {
            System.out.println("speedPrintString___getLock time=" + System.currentTimeMillis() +
                    "run ThreadName=" + Thread.currentThread().getName());
            System.out.println("----------------");
            System.out.println("speedPrintString___releaseLock time=" + System.currentTimeMillis() +
                    "run ThreadName=" + Thread.currentThread().getName());
        }
    }
}
